package test.collection;

import java.util.Arrays;
import java.util.List;

public class ToArray {
    public static void main(String[] args) {
        List<Integer> aList = Arrays.asList(1,2,3);
        System.out.println(aList);
        
        Integer [] iArray = {3,4,5};
        Integer [] iA2 = aList.toArray(iArray);
        System.out.println(iA2);
    }
}
